package com.toft.widgets.workflow.model;

import com.toft.widgets.workflow.utils.ReflectionUtils;
import java.io.Serializable;
import java.util.List;

public class CompleteTaskResult
  implements Serializable
{
  private static final long serialVersionUID = -3971436616570150622L;
  private boolean ended;
  private boolean back;
  private String nextOperators;
  private List nextOperatorsList;
  private String processInstanceId;
  private String businessType;
  private String businessRecordId;

  public CompleteTaskResult(boolean paramBoolean1, boolean paramBoolean2, String paramString1, String paramString2, String paramString3, List paramList)
  {
    this.ended = paramBoolean1;
    this.back = paramBoolean2;
    this.nextOperatorsList = paramList;
    this.processInstanceId = paramString1;
    this.businessType = paramString2;
    this.businessRecordId = paramString3;
  }

  public boolean isEnded()
  {
    return this.ended;
  }

  public void setEnded(boolean paramBoolean)
  {
    this.ended = paramBoolean;
  }

  public boolean isBack()
  {
    return this.back;
  }

  public void setBack(boolean paramBoolean)
  {
    this.back = paramBoolean;
  }

  public String getNextOperators()
  {
    if (this.nextOperatorsList == null)
      return "审批结束";
    return ReflectionUtils.convertElementPropertyToString(this.nextOperatorsList, "NAME", ",");
  }

  public void setNextOperators(String paramString)
  {
    this.nextOperators = paramString;
  }

  public List getNextOperatorsList()
  {
    return this.nextOperatorsList;
  }

  public void setNextOperatorsList(List paramList)
  {
    this.nextOperatorsList = paramList;
  }

  public String getProcessInstanceId()
  {
    return this.processInstanceId;
  }

  public void setProcessInstanceId(String paramString)
  {
    this.processInstanceId = paramString;
  }

  public String getBusinessType()
  {
    return this.businessType;
  }

  public void setBusinessType(String paramString)
  {
    this.businessType = paramString;
  }

  public String getBusinessRecordId()
  {
    return this.businessRecordId;
  }

  public void setBusinessRecordId(String paramString)
  {
    this.businessRecordId = paramString;
  }
}